#-------------------------------------------------
#
# Project created by QtCreator 2021-05-19T16:34:43
#
#-------------------------------------------------
#sun
#INCLUDEPATH+=D:\software\MVS\MVS\Development\Includes
#LIBS += D:\software\MVS\MVS\Development\Libraries\win64\MvCameraControl.lib
#LIBS += D:\software\MVS\MVS\Development\Libraries\win64\C++Builder\MvCameraControlBC.a

#INCLUDEPATH+=D:\software\opencvbuild\opencvbulid3.40\include
#             D:\software\opencvbuild\opencvbulid3.40\include\opencv
#             D:\software\opencvbuild\opencvbulid3.40\include\opencv2

#LIBS += -L D:\software\opencvbuild\opencvbulid3.40\x64\mingw\bin\libopencv_*.dll
#LIBS += -L D:\software\opencvbuild\opencvbulid3.40\x64\mingw\lib\libopencv_*.a

QT += core gui
QT += charts
QT +=sql
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = BackLight
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0




CONFIG += c++11
#配置opencv路径sun
INCLUDEPATH+=D:\software\opencvbuild\opencvbulid3.40\include
             D:\software\opencvbuild\opencvbulid3.40\include\opencv
             D:\software\opencvbuild\opencvbulid3.40\include\opencv2
CONFIG(debug,debug|release){
LIBS+=D:\software\opencv\opencv\opencv\build\x64\vc14\lib\opencv_world340d.lib
}
else{
LIBS+=D:\software\opencv\opencv\opencv\build\x64\vc14\lib\opencv_world340.lib
}
LIBS+=D:\software\opencv\opencv\opencv\build\x64\vc14\lib\opencv_world340d.lib
      D:\software\opencv\opencv\opencv\build\x64\vc14\lib\opencv_world340.lib

SOURCES += \
        main.cpp \
         UI/mainwindow.cpp \
    Model/plc.cpp \
    UI/typeconfig.cpp \
    Model/ProductModel.cpp \
    DAL/productmodeldal.cpp \
    UI/mytablewidgetitem.cpp \
    UI/qualityrules.cpp \
    UI/cameraconfig.cpp \
    UI/cameraconfigadd.cpp \
    UI/save_image.cpp \
    UI/plcconfig.cpp \
    UI/plcconfigadd.cpp \
    BLL/cameramanager.cpp \
    DAL/cameradal.cpp

HEADERS += \
       UI/mainwindow.h \
    Model/plc.h \
    helper.h \
    UI/typeconfig.h \
    DAL/productmodeldal.h \
    DAL/dbhelper.h \
    UI/mytablewidgetitem.h \
    UI/qualityrules.h \
    UI/cameraconfig.h \
    UI/cameraconfigadd.h \
    UI/save_image.h \
    UI/plcconfig.h \
    UI/plcconfigadd.h \
    BLL/cameramanager.h \
    DAL/cameradal.h
UI_DIR=./
FORMS += \
         UI/mainwindow.ui \
    UI/typeconfig.ui \
    UI/qualityrules.ui \
    UI/cameraconfig.ui \
    UI/save_image.ui \
    UI/plcconfig.ui \
    UI/plcconfigadd.ui \
    UI/cameraconfigadd.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    picture.qrc

DISTFILES +=

msvc {
      QMAKE_CFLAGS += /utf-8
      QMAKE_CXXFLAGS += /utf-8
}

LIBS += -lDbghelp
LIBS += -luser32

# release add debug info
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
